package com.luo.chengrui.module.sa.framework.datapermission.config;

import com.luo.chengrui.framework.sadatapermission.core.rule.dept.DataPermissionRuleCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * system 模块的数据权限 Configuration
 *
 * @author 芋道源码
 */
@Configuration(proxyBeanMethods = false)
public class DataPermissionConfiguration {

    @Bean
    public DataPermissionRuleCustomizer sysDeptDataPermissionRuleCustomizer() {
        return rule -> {
            // dept
//            rule.addDeptColumn(AdminUserDO.class);
//            rule.addDeptColumn(DeptDO.class, "id");
//             user
//            rule.addUserColumn(AdminUserDO.class, "id");
        };
    }

}
